import request from "@/utils/request";

//新增接口
export const addType = (data) => {
  return request({
    url: "base/prodEquipmentType/add",
    method: "post",
    data,
  });
};
//编辑接口
export const updateType = (data) => {
  return request({
    url: "base/prodEquipmentType/edit",
    method: "post",
    data,
  });
};
//查询接口
export const listType = (params, data) => {
  return request({
    url: "base/prodEquipmentType/list",
    method: "get",
    params,
    data,
  });
};
//删除接口
export const delType = (params, data) => {
  return request({
    url: "base/prodEquipmentType/deleteBatch",
    method: "post",
    params,
    data,
  });
};
//数据回显接口
export const getType = (data) => {
  return request({
    url: `base/prodEquipmentType/queryById?id=${data}`,
    method: "get",
  });
};
